<template>
  <div>
    <cityHeade></cityHeade>
    <citylist :city="city" @change="handleLetterChange"></citylist>
  </div>
</template>

<script>
import cityHeade from "./components/cityHeade.vue";
import citylist from "./components/citylist.vue";
import city from "../../assets/city.json";
export default {
  components: {
    cityHeade,
    citylist,
  },
  data() {
    return {
      city: city.data,
    };
  },
  methods: {
    handleLetterChange(letter) {
      console.log(letter);
      this.letter = letter;
    },
  },
};
</script>

<style lang="scss" scoped>
</style>